package com.celer.flex.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;

import java.io.Serializable;

import java.io.Serial;
import java.time.LocalDateTime;

import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 实体类。
 *
 * @author Celer
 * @since 2025-10-15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("sys_trade_log")
public class TradeLog implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    private String id;

    private String orderNo;

    private String reqMsg;

    private String respMsg;
    @Column(onInsertValue = "datetime()", onUpdateValue = "datetime()")
    private LocalDateTime tradeDate;

}
